{% extends 'Rango/base.html' %}
{% load static %}

{% block title_block %}How to Tango with Django{% endblock %}

{% block body_block %}
    <h1>Tango Says...</h1><br/>
    This is Index Page!<br/>
    <img src="{% static "images/hua.jpg" %}" width="300" height="300" alt="Picture of hua"/><br/>

    {% if Categories %}
        <ul>
            {% for category in Categories %}
                <li><a href="{% url 'Rango:category' category.slug %}">{{ category.name }}</a></li>
            {% endfor %}
        </ul>
    {% else %}
            <strong>These are no categories peresent.</strong>
    {% endif %}
{% endblock %}
